# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=qalculate-gtk
pkgver=2.6.2
pkgrel=1
pkgdesc="GTK frontend for libqalculate"
arch=('x86_64')
url="http://qalculate.github.io/"
license=('GPL')
depends=('libqalculate' 'gtk3')
makedepends=('intltool' 'rarian')
optdepends=('yelp: for displaying the help')
options=('!makeflags')
source=(https://github.com/Qalculate/qalculate-gtk/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha1sums=('5d859ba458d45cd56bdc7fa0713a4895d79801a8')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
